#ifndef TEXTEDIT_H
#define TEXTEDIT_H

#include <QDialog>
#include <iostream>
#include <QFile>
#include <QDir>
#include <QTextStream>
#include <QFileDialog>
#include <QSettings>
#include <QMessageBox>

namespace Ui {
class TextEdit;
}

class TextEdit : public QDialog
{
    Q_OBJECT

public:
    explicit TextEdit(QWidget *parent = 0);
    ~TextEdit();

private:
   void saveText();
   void readText();
   QFile textFile;//OR : QFile textFile("text.txt");

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

private:
    Ui::TextEdit *ui;
};

#endif // TEXTEDIT_H
